﻿#region License

// Copyright (c) 2013, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This file is part of the ClearCanvas RIS/PACS open source project.
//
// The ClearCanvas RIS/PACS open source project is free software: you can
// redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// The ClearCanvas RIS/PACS open source project is distributed in the hope that it
// will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along with
// the ClearCanvas RIS/PACS open source project.  If not, see
// <http://www.gnu.org/licenses/>.

#endregion

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.269
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.269.
// 
#pragma warning disable 1591

namespace ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.StudyLocatorAsp {
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="StudyLocator", Namespace="http://www.clearcanvas.ca/dicom/query")]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(Identifier))]
    public partial class StudyLocator : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback StudyQueryOperationCompleted;
        
        private System.Threading.SendOrPostCallback SeriesQueryOperationCompleted;
        
        private System.Threading.SendOrPostCallback ImageQueryOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public StudyLocator() {
            this.Url = "http://localhost:51124/ClearCanvas/ImageViewer/StudyLocator";
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event StudyQueryCompletedEventHandler StudyQueryCompleted;
        
        /// <remarks/>
        public event SeriesQueryCompletedEventHandler SeriesQueryCompleted;
        
        /// <remarks/>
        public event ImageQueryCompletedEventHandler ImageQueryCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.clearcanvas.ca/dicom/query/IStudyRootQuery/StudyQuery", RequestNamespace="http://www.clearcanvas.ca/dicom/query", ResponseNamespace="http://www.clearcanvas.ca/dicom/query", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]
        public StudyRootStudyIdentifier[] StudyQuery([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] StudyRootStudyIdentifier queryCriteria) {
            object[] results = this.Invoke("StudyQuery", new object[] {
                        queryCriteria});
            return ((StudyRootStudyIdentifier[])(results[0]));
        }
        
        /// <remarks/>
        public void StudyQueryAsync(StudyRootStudyIdentifier queryCriteria) {
            this.StudyQueryAsync(queryCriteria, null);
        }
        
        /// <remarks/>
        public void StudyQueryAsync(StudyRootStudyIdentifier queryCriteria, object userState) {
            if ((this.StudyQueryOperationCompleted == null)) {
                this.StudyQueryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStudyQueryOperationCompleted);
            }
            this.InvokeAsync("StudyQuery", new object[] {
                        queryCriteria}, this.StudyQueryOperationCompleted, userState);
        }
        
        private void OnStudyQueryOperationCompleted(object arg) {
            if ((this.StudyQueryCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.StudyQueryCompleted(this, new StudyQueryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.clearcanvas.ca/dicom/query/IStudyRootQuery/SeriesQuery", RequestNamespace="http://www.clearcanvas.ca/dicom/query", ResponseNamespace="http://www.clearcanvas.ca/dicom/query", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]
        public SeriesIdentifier[] SeriesQuery([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] SeriesIdentifier queryCriteria) {
            object[] results = this.Invoke("SeriesQuery", new object[] {
                        queryCriteria});
            return ((SeriesIdentifier[])(results[0]));
        }
        
        /// <remarks/>
        public void SeriesQueryAsync(SeriesIdentifier queryCriteria) {
            this.SeriesQueryAsync(queryCriteria, null);
        }
        
        /// <remarks/>
        public void SeriesQueryAsync(SeriesIdentifier queryCriteria, object userState) {
            if ((this.SeriesQueryOperationCompleted == null)) {
                this.SeriesQueryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSeriesQueryOperationCompleted);
            }
            this.InvokeAsync("SeriesQuery", new object[] {
                        queryCriteria}, this.SeriesQueryOperationCompleted, userState);
        }
        
        private void OnSeriesQueryOperationCompleted(object arg) {
            if ((this.SeriesQueryCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SeriesQueryCompleted(this, new SeriesQueryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.clearcanvas.ca/dicom/query/IStudyRootQuery/ImageQuery", RequestNamespace="http://www.clearcanvas.ca/dicom/query", ResponseNamespace="http://www.clearcanvas.ca/dicom/query", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]
        public ImageIdentifier[] ImageQuery([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] ImageIdentifier queryCriteria) {
            object[] results = this.Invoke("ImageQuery", new object[] {
                        queryCriteria});
            return ((ImageIdentifier[])(results[0]));
        }
        
        /// <remarks/>
        public void ImageQueryAsync(ImageIdentifier queryCriteria) {
            this.ImageQueryAsync(queryCriteria, null);
        }
        
        /// <remarks/>
        public void ImageQueryAsync(ImageIdentifier queryCriteria, object userState) {
            if ((this.ImageQueryOperationCompleted == null)) {
                this.ImageQueryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnImageQueryOperationCompleted);
            }
            this.InvokeAsync("ImageQuery", new object[] {
                        queryCriteria}, this.ImageQueryOperationCompleted, userState);
        }
        
        private void OnImageQueryOperationCompleted(object arg) {
            if ((this.ImageQueryCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ImageQueryCompleted(this, new ImageQueryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
        
        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null) 
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024) 
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.clearcanvas.ca/dicom/query")]
    public partial class StudyRootStudyIdentifier : StudyIdentifier {
        
        private string patientIdField;
        
        private string patientsBirthDateField;
        
        private string patientsBirthTimeField;
        
        private string patientsNameField;
        
        private string patientsSexField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string PatientId {
            get {
                return this.patientIdField;
            }
            set {
                this.patientIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string PatientsBirthDate {
            get {
                return this.patientsBirthDateField;
            }
            set {
                this.patientsBirthDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string PatientsBirthTime {
            get {
                return this.patientsBirthTimeField;
            }
            set {
                this.patientsBirthTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string PatientsName {
            get {
                return this.patientsNameField;
            }
            set {
                this.patientsNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string PatientsSex {
            get {
                return this.patientsSexField;
            }
            set {
                this.patientsSexField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(StudyRootStudyIdentifier))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.clearcanvas.ca/dicom/query")]
    public partial class StudyIdentifier : Identifier {
        
        private string accessionNumberField;
        
        private string[] modalitiesInStudyField;
        
        private System.Nullable<int> numberOfStudyRelatedInstancesField;
        
        private bool numberOfStudyRelatedInstancesFieldSpecified;
        
        private System.Nullable<int> numberOfStudyRelatedSeriesField;
        
        private bool numberOfStudyRelatedSeriesFieldSpecified;
        
        private string referringPhysiciansNameField;
        
        private string studyDateField;
        
        private string studyDescriptionField;
        
        private string studyIdField;
        
        private string studyInstanceUidField;
        
        private string studyTimeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string AccessionNumber {
            get {
                return this.accessionNumberField;
            }
            set {
                this.accessionNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]
        [System.Xml.Serialization.XmlArrayItemAttribute(Namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays")]
        public string[] ModalitiesInStudy {
            get {
                return this.modalitiesInStudyField;
            }
            set {
                this.modalitiesInStudyField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<int> NumberOfStudyRelatedInstances {
            get {
                return this.numberOfStudyRelatedInstancesField;
            }
            set {
                this.numberOfStudyRelatedInstancesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool NumberOfStudyRelatedInstancesSpecified {
            get {
                return this.numberOfStudyRelatedInstancesFieldSpecified;
            }
            set {
                this.numberOfStudyRelatedInstancesFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<int> NumberOfStudyRelatedSeries {
            get {
                return this.numberOfStudyRelatedSeriesField;
            }
            set {
                this.numberOfStudyRelatedSeriesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool NumberOfStudyRelatedSeriesSpecified {
            get {
                return this.numberOfStudyRelatedSeriesFieldSpecified;
            }
            set {
                this.numberOfStudyRelatedSeriesFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string ReferringPhysiciansName {
            get {
                return this.referringPhysiciansNameField;
            }
            set {
                this.referringPhysiciansNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string StudyDate {
            get {
                return this.studyDateField;
            }
            set {
                this.studyDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string StudyDescription {
            get {
                return this.studyDescriptionField;
            }
            set {
                this.studyDescriptionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string StudyId {
            get {
                return this.studyIdField;
            }
            set {
                this.studyIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string StudyInstanceUid {
            get {
                return this.studyInstanceUidField;
            }
            set {
                this.studyInstanceUidField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string StudyTime {
            get {
                return this.studyTimeField;
            }
            set {
                this.studyTimeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(SeriesIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(StudyIdentifier))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(StudyRootStudyIdentifier))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.clearcanvas.ca/dicom/query")]
    public partial class Identifier {
        
        private string instanceAvailabilityField;
        
        private string retrieveAeTitleField;
        
        private string specificCharacterSetField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string InstanceAvailability {
            get {
                return this.instanceAvailabilityField;
            }
            set {
                this.instanceAvailabilityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string RetrieveAeTitle {
            get {
                return this.retrieveAeTitleField;
            }
            set {
                this.retrieveAeTitleField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string SpecificCharacterSet {
            get {
                return this.specificCharacterSetField;
            }
            set {
                this.specificCharacterSetField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.clearcanvas.ca/dicom/query")]
    public partial class ImageIdentifier : Identifier {
        
        private System.Nullable<int> instanceNumberField;
        
        private string seriesInstanceUidField;
        
        private string sopClassUidField;
        
        private string sopInstanceUidField;
        
        private string studyInstanceUidField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<int> InstanceNumber {
            get {
                return this.instanceNumberField;
            }
            set {
                this.instanceNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string SeriesInstanceUid {
            get {
                return this.seriesInstanceUidField;
            }
            set {
                this.seriesInstanceUidField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string SopClassUid {
            get {
                return this.sopClassUidField;
            }
            set {
                this.sopClassUidField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string SopInstanceUid {
            get {
                return this.sopInstanceUidField;
            }
            set {
                this.sopInstanceUidField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string StudyInstanceUid {
            get {
                return this.studyInstanceUidField;
            }
            set {
                this.studyInstanceUidField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.clearcanvas.ca/dicom/query")]
    public partial class SeriesIdentifier : Identifier {
        
        private string modalityField;
        
        private System.Nullable<int> numberOfSeriesRelatedInstancesField;
        
        private bool numberOfSeriesRelatedInstancesFieldSpecified;
        
        private string seriesDescriptionField;
        
        private string seriesInstanceUidField;
        
        private System.Nullable<int> seriesNumberField;
        
        private bool seriesNumberFieldSpecified;
        
        private string studyInstanceUidField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string Modality {
            get {
                return this.modalityField;
            }
            set {
                this.modalityField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<int> NumberOfSeriesRelatedInstances {
            get {
                return this.numberOfSeriesRelatedInstancesField;
            }
            set {
                this.numberOfSeriesRelatedInstancesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool NumberOfSeriesRelatedInstancesSpecified {
            get {
                return this.numberOfSeriesRelatedInstancesFieldSpecified;
            }
            set {
                this.numberOfSeriesRelatedInstancesFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string SeriesDescription {
            get {
                return this.seriesDescriptionField;
            }
            set {
                this.seriesDescriptionField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string SeriesInstanceUid {
            get {
                return this.seriesInstanceUidField;
            }
            set {
                this.seriesInstanceUidField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<int> SeriesNumber {
            get {
                return this.seriesNumberField;
            }
            set {
                this.seriesNumberField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool SeriesNumberSpecified {
            get {
                return this.seriesNumberFieldSpecified;
            }
            set {
                this.seriesNumberFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string StudyInstanceUid {
            get {
                return this.studyInstanceUidField;
            }
            set {
                this.studyInstanceUidField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void StudyQueryCompletedEventHandler(object sender, StudyQueryCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class StudyQueryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal StudyQueryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public StudyRootStudyIdentifier[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((StudyRootStudyIdentifier[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void SeriesQueryCompletedEventHandler(object sender, SeriesQueryCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SeriesQueryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SeriesQueryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public SeriesIdentifier[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((SeriesIdentifier[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void ImageQueryCompletedEventHandler(object sender, ImageQueryCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class ImageQueryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal ImageQueryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public ImageIdentifier[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((ImageIdentifier[])(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591